<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>06_变换原点</title>
    <style>
        .outer {
            width: 200px;
            height: 200px;
            border: 1px solid black;
            margin: 100px  auto;
        }
        .inner {
            width: 200px;
            height: 200px;
            background-color: skyblue;
            /* 百分比 */
            /* transform-origin: 50% 50%;  */
            transform-origin: 50px 50px; 
            /* transform: rotate(40deg); */
            /* 奔着盒子原点去 */
            transform: scale(0.3
            );
        }
        .test {
            width: 50px;
            height: 50px;
            background-color: orange;
        }
    </style>
</head>
<body>
    <div class="outer">
        <div class="inner">
            <div class="test">
                你好哇
            </div>
        </div>
    </div>
</body>
</html>